package com.example.yin.service;

import com.example.yin.domain.Article;
import com.example.yin.domain.Subscribe;
import com.example.yin.vo.ArticleVO;

import java.util.List;

/**
 * @author
 * @description
 * @createDate 2023/6/26
 */

public interface ArticleService {
    boolean add(Article article);

    boolean delete(Integer article_id);

    boolean update(Article article);

    Article getDetail(Integer article_id);

    boolean updateArticlePic(Article article);
    List<Article> getSubArticle(int user_id);

    boolean subscribe(Subscribe subscribe);

    List<Article> getList(Article article);

    List<ArticleVO> getListVO(ArticleVO articleVO);
    //是否存在订阅
    boolean isExist(Integer user_id, Integer sub_user_id);

    //插入订阅
    boolean insertIntoSubscribe(Integer user_id, Integer sub_user_id);

    //删除订阅
    boolean deleteSubscribe(Integer user_id, Integer sub_user_id);
}
